<?php

namespace app\admin\model\yexam;

use think\Model;

class ComboCategory extends Model
{
    //=================  表名
    protected $name = 'yexam_combo_category';
    //============== 自动写入时间戳
    protected $autoWriteTimestamp = 'int';
    //=============== 创建时间
    protected $createTime = 'create_time';
    protected $dateFormat = 'Y-m-d H:i:s';
    protected $pk = 'category_id';
    //======
    public function comboList()
    {
        return $this->belongsTo('combo_list','id','category_id');
    }
}